import request from '@/utils/request'
//角色列表查询
export const roleListService = (params: any) =>{
    return request.get('/system/role/page',{params:params})
} 
//添加角色
export const addRoleService = (roleForm: any)=>{
    return request.post('/system/role',roleForm)
}
//修改角色
export const updateRoleService = (roleForm: any)=>{
    return request.put('/system/role',roleForm)
}
//删除角色
export const deleteRoleService = (id: number)=>{
    return request.delete('/system/role/'+id)
}
//角色权限列表查询
export const roleMenuListService = (params: any) =>{
    return request.get('/system/role',{params:params})
} 